package com.xuecheng.manage_cms.controller;

import com.xuecheng.api.cms.CmsTemplateControllerApi;
import com.xuecheng.framework.model.response.ResponseResult;
import com.xuecheng.manage_cms.service.PageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author HTHLKJ
 * @version 1.0
 * @date 2021/6/25 10:54
 */
@RequestMapping("cms/template")
@RestController
public class CmsTempalteController implements CmsTemplateControllerApi {

    @Autowired
    private PageService pageService;

    @Override
    @GetMapping("/list")
    public ResponseResult templateList() {
        return pageService.templateList();
    }
}
